<%--
  Created by IntelliJ IDEA.
  User: liyuxiang
  Date: 2021/3/23
  Time: 3:35 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="<%=request.getContextPath()%>/test" method="post" enctype="multipart/form-data">
    <input type="file" name="fileName">
    <input type="submit" value="提交">
</form>
<img src="<%=session.getAttribute("img")%>" alt="请上传头像">
</body>
</html>
